package service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.sql.SQLException;

public interface UserService {

    public void drawCode(HttpServletRequest request, HttpServletResponse response);

    public String login(HttpServletRequest request, HttpServletResponse response) throws SQLException;

    public void rememberMe(HttpServletResponse response,String username,String name,String role,String photo);

    public void loginOut(HttpServletRequest request, HttpServletResponse response);

    public boolean resetPassword(HttpServletRequest request, HttpServletResponse response) throws SQLException;

}
